#include "main.h"

#include "test.h"

DEFINE_LOGGER(TEST, 128, LOG__DEBUG);

void test_thread(void)
{
    LogInfo("%s start\r\n",__FUNCTION__);

    TEMPLATE_t _template = (TEMPLATE_t)dev_get("template");
    _template->init(NULL);
    _template->readable();
    _template->writeable();
    _template->flush();

    while(1)
    {
        system_delay_ms(5000);
        LogInfo("%s %d\r\n",__FUNCTION__,__LINE__);
    }
}
